/*!
* @author @huntbao
* @project list model
*/
App.Models.projectModel = Backbone.Model.extend({
	
	urlRoot: '/document/project/',

    sync: function(method, model, options){
        if(method === 'delete'){
           options = options || {};
           options.url = model.urlRoot + model.get('projectId');
        }else if(method === 'update'){
            options = options || {};
            options.url = model.urlRoot + '?file';
        }
        Backbone.sync(method, model, options);
    }
});
